package cn.liyiming.bbs.util;

/**
 * @author 立以宁
 */

public enum SystemExceptionType {
    USER_INPUT_ERROR(400,"用户输入异常"),
    SYSTEM_ERROR (500,"系统服务异常"),
    OTHER_ERROR(999,"其他未知异常"),
    LOGIN_ERROR(404,"用户账号或密码错误");

    SystemExceptionType(int code, String typeDesc) {
        this.code = code;
        this.typeDesc = typeDesc;
    }

    private String typeDesc;
    //异常类型中文描述

    private int code;
    //code

    public String getTypeDesc() {
        return typeDesc;
    }

    public int getCode() {
        return code;
    }
}
